#ifndef _CSHOTGUNBULLET_H_
#define _CSHOTGUNBULLET_H_

#include "CBase.h"
#include "..\\Messaging\IListener.h"

class CShotgunBullet : public CBase, IListener
{
private:
	CBase*	m_pOwner;

	int		m_nBulletType;

	int m_nBulletID;

public:
	enum bulletType {BLT_PLAYER, BLT_ENEMY};

	CShotgunBullet(void);
	~CShotgunBullet(void);

	// Utility functions
	CBase* GetOwner() { return m_pOwner; }
	void SetOwner(CBase* pOwner) { m_pOwner = pOwner; }

	int GetBulletType() { return m_nBulletType; }
	void SetBulletType(int nBulletType) { m_nBulletType = nBulletType; }

	void Update(float fElapsedTime);
	void Render(void);

	RECT GetCollisionRect(void);

	bool CheckCollision(IBaseInterface* pBase);
	void HandleEvent(CEvent* pEvnt);
};

#endif